package org.ggw.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.ggw.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@Path("/demo")
public class RestfulService {

	@Autowired
	private DemoService demoService;

	@GET
	@Path("/hello")
	public String sayHello() {
		return demoService.say();

	}

}